You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > MatrixInt Structure > MatrixInt Methods > ThreshTop Method > MatrixInt.ThreshTop Method ([In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MatrixInt.ThreshTop Method ([In] int)

Threshold top operation.

Syntax
C#
Visual Basic
public TMtxVecInt ThreshTop([In] int Value);

Perform threshold operation on all calling object values. The Value parameter is an upper bound for threshold operation. All values bigger than Value will be replaced with Value.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TMtxInt a; MtxVecInt.CreateIt(out a); try { a.SetIt(2,2,new int[] {2, 0, 3, 4}); a.ThreshTop(1); // a = [1, 0, 1, 1] } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!